package com.eagle.roomsearch;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@EnableScheduling    //开启定时任务
@MapperScan("com.eagle.roomsearch.mapper")
@EnableTransactionManagement
public class RoomSearchApplication extends SpringBootServletInitializer {

	public static void main(String[] args) {
		SpringApplication.run(RoomSearchApplication.class, args);
	}


	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
		return application.sources(RoomSearchApplication.class);
	}

}
